<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css实现三条杠不用伪元素</title>
    <style>
        .dic1{
            width:140px;
            height:10px;
            background-color: transparent;
            box-shadow: 0 15px 0 red,0 35px 0 yellow,0 55px 0 blue;
            margin:100px;
        }
        .three{
            width:140px;
            height:10px;
            padding:35px 0;
            border-bottom: 10px solid;
            border-top:10px solid;
            background-color: red;
            background-clip: content-box;
        }
    </style>
</head>
<body>
<div class="three"></div>
<div class="dic1"></div>
</body>
</html>